avoid redundant prompt for http password in git-annex get that does autoinit
authorJoey Hess <joeyh@joeyh.name>
Fri, 9 Sep 2022 18:43:43 +0000 (14:43 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 9 Sep 2022 18:43:43 +0000 (14:43 -0400)
commitc62fe5e9a80058de0bba7bf9bed1875fb91e4f81
treebb0befc39edeee0aa5d0d063853b1d55ae326918
parent9621beabc46d411c52ab4024b4657fdf406465b5
avoid redundant prompt for http password in git-annex get that does autoinit

autoEnableSpecialRemotes runs a subprocess, and if the uuid for a git
remote has not been probed yet, that will do a http get that will prompt
for a password. And then the parent process will subsequently prompt
for a password when getting annexed files from the remote.

So the solution is for autoEnableSpecialRemotes to run remoteList before
the subprocess, which will probe for the uuid for the git remote in the
same process that will later be used to get annexed files.

But, Remote.Git imports Annex.Init, and Remote.List imports Remote.Git,
so Annex.Init cannot import Remote.List. Had to pass remoteList into
functions in Annex.Init to get around this dependency loop.
Annex/Init.hs
Command.hs
Command/Assistant.hs
Remote/Git.hs
doc/todo/not_ask_git_credentials_for_password_per_each_file.mdwn
doc/todo/not_ask_git_credentials_for_password_per_each_file/comment_4_4dca41df7506fa7aedf88d7618bbcf39._comment [new file with mode: 0644]